package com.hducms.cms.dao;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.hducms.cms.entity.main.CmsGroup;

public interface CmsGroupDao {
	public List<CmsGroup> getList();

	/**
	 * 获取默认会员组
	 * @return
	 */
	public CmsGroup getRegDef();

	public CmsGroup findById(Integer id);

	public void save(CmsGroup bean);

	public void update(CmsGroup bean);

	public void deleteById(Integer id);

	/**
	 * 保存浏览权限组jc_chnl_group_view
	 * @param map
	 */
	public void insertViewGroup(Map<String, Object> map);

	/**
	 * 保存投稿权限组jc_chnl_group_contri
	 * @param map
	 */
	public void insertContriGroup(Map<String, Object> map);

	public Set<Integer> getViewChannelIds(Integer groupId);

	public Set<Integer> getContriChannelIds(Integer groupId);
	
	public void deleteViewChannelIds(Integer groupId);

	public void deleteContriChannelIds(Integer groupId);
}